import Vue from 'vue'
import App from './App.vue'
import router from './routers'
import store from './stores'

Vue.config.productionTip = false

// 导入axios模块
import axios from 'axios'
Vue.prototype.axios = axios


// 配置图片的过滤器
Vue.filter('setWH', (src, arg) => {
  return src.replace(/w\.h/, arg)
})

//注册scroll全局组件
import Scroller from '@/components/Scroller'
Vue.component('Scroller', Scroller)

// 注册loading全局组件
import Loading from '@/components/Loading'
Vue.component('Loading',Loading)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')